package ui;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JPanel;

import beans.HardDisk;

public class ToolsBar extends JPanel{

	
	private final static int TOOLSBAR_WIDTH = 800;
	private final static int TOOLSBAR_HIGHT = 60;
	
	private ButtonBar buttonBar;
	private HardDisk hardDisk;
	private TreePanel treep;
	private MainPanel mainPanel;
	private AddressBar addressBar;
	
	public ToolsBar(HardDisk hardDisk,TreePanel treep,MainPanel mainPanel){
		this.mainPanel = mainPanel;
		this.treep = treep;
		this.setLayout(null);
		this.setBounds(0,0,TOOLSBAR_WIDTH,TOOLSBAR_HIGHT);
		

		this.addressBar = new AddressBar();
		this.buttonBar = new ButtonBar(hardDisk,treep,mainPanel);
		this.buttonBar.setBounds(0, 0, 400, 50);
		
		this.add(buttonBar);
		this.add(addressBar);
	}
}
